package com.atguigu;

/**
 * @author leimingchao
 * @create 2021-04-08 19:40

 *
 *
 *
 */
public class VariableTest4 {

    public static void main(String[] args) {
        //1.编码情况1：
        long l = 123123;
        System.out.println(l);

        //编译失败：过大的整数
        //long l1 = 123456789876;

        long l1 = 123456789876L;
        System.out.println(l1);


        //***********************
        //编译失败：
        //float f1 = 12.3;

        //2.编码情况2
        byte b = 12;
        //编译失败
        //整型常量，默认类型为int型
        //浮点型常量，默认类型为double型
        //byte b1 = b +1;

        //编译失败
        //float f2 =  b + 12.3;



    }

}
